import '../../base/get/getx_controller_inject.dart';
// import '../../event/reload_bus_event.dart';
import '../../res/strings.dart';
import '../../routes/routes.dart';
import '../../util/toast_util.dart';
import 'package:get/get.dart';

import '../../../res/global_user_info.dart';
import '../../../util/save/sp_util.dart';

class LoginController extends BaseGetController {
  // 账号
  String account = '';

  // 密码
  String checkCode = '';

  bool isAgree = false;

// 按钮是否可以点击
  bool changeShowButton() {
    return account.isNotEmpty && checkCode.isNotEmpty && isAgree;
  }

  login() {

    Get.toNamed(Routes.homePage);

    if (account.isEmpty || checkCode.isEmpty || !isAgree) {
      return;
    }


  }

  //发送验证码

}
